package com.cloudshop.service.goods;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * Goods模块启动类.
 *
 * @author 宫新程
 * @since 2019/3/29 15:32
 */
@SpringCloudApplication
@EnableEurekaClient // 将服务注册到Eureka
@EnableFeignClients // Feign调用其他服务
@ComponentScan({"com.cloudshop.service"})
public class GoodsApplication {

  public static void main(String[] args) {
    SpringApplication.run(GoodsApplication.class, args);
  }
}
